export const setInfo = (res) => {
    window.sessionStorage.setItem("info", JSON.stringify(res))
}
export const getInfo = () => {
    return JSON.parse(window.sessionStorage.getItem("info"))
}
export const getToken = () => {
    return getInfo()?.token;
}
